{% extends "base_nosearch.html" %}
{% block script %}
	$("#submit").click(function(){
		$("form").submit();
	});
	$("input[name='password2']").keydown(function(e){
		if(e.keyCode==13)
			$("form").submit();
	});
{% endblock %}
   
{% block content %}
<div class="container" id="bg_none">  
    <div id="register_container">
         <span class="orange2">会员登录</span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;请填写你的注册信息，如果你已经注册，可直接&nbsp;&nbsp;&nbsp;<a href="login.html" class="orange">登录</a>
         <div id="register_content">
         <form method="post">
            <table><tbody>
            <tr>
               <td class="left">{{form.username.label}}</td>
               <td colspan="2" class="td_bg">{{form.username}}</td>
               <td class="red">{% for error in form.username.errors %}{{error}}{% endfor %}</td>
            </tr>
            <tr>
	            <td class="left"></td>
	            <td colspan="3"><span style="color:#999999; font-size: 12px">手机号码只用作接收就餐信息之用，易点餐网将严格保密</span></td>
	        </tr>
            <tr>
               <td class="left">{{form.password.label}}</td>
               <td colspan="2" class="td_bg">{{form.password}}</td>
               <td class="red">{% for error in form.password.errors %}{{error}}{% endfor %}</td>               
            </tr>
            <tr>
               <td class="left">{{form.password2.label}}</td>
               <td colspan="2" class="td_bg">{{form.password2}}</td>
               <td class="red">{% for error in form.password2.errors %}{{error}}{% endfor %}</td>
            </tr>
            <tr>
               <td class="left" ></td>
               <td colspan="2"></td>
               <td class="red"></td>             
            </tr>
            <tr>
               <td colspan="3">
                  <input type="checkbox" id="agree" name="tos" checked="true"><a href="">我已阅读并同意《E点餐用户协议》</a> 
               </td>
               <td class="red">{% for error in form.tos.errors %}{{error}}{% endfor %}</td>
            </tr>
            
             <tr>
               <td colspan="3" class="left"><a id="submit"  title="还等什么？赶紧注册吧！N多美食等着你！" href="#" ><img src="{{STATIC_URL}}image/register2.jpg"></a></td>
               <td></td>              
            </tr>            
            </tbody></table>
            {% csrf_token %}  
        </form>
        <ul class="ad_word">
           <li><span class="orange4">与朋友一起分享美味餐厅</span><br><br>找餐厅，我们总喜欢问朋友<br>在易点，能立刻看到朋友的推荐</li>
           <li><span class="orange4">在线点餐</span><br><br>吃饭时，我们总为点菜而烦恼<br>在易点，点餐很轻松很方便</li>
           <li><span class="orange4">优惠多多，返利多多</span><br><br>消费时，我们总喜欢优惠多多<br>在易点，不仅有优惠，还有返利</li>
        </ul>
        </div>  
     </div>
	 <div><img src="{{STATIC_URL}}image/bottom.jpg"></div>
</div>
{% endblock %}
